import House.HouseList;
import User.*;

import java.util.Scanner;

public class Main {
    public static User choice(){
        Scanner scanner=new Scanner(System.in);
        System.out.println("1:管理员");
        System.out.println("2.用户 ");
        int choice= scanner.nextInt();
        if(choice==1){
            return new AdmiUser();
        } else if (choice == 2) {
            return new Normal();
        }else {
            System.out.println("输入错误");
            return null;
        }
    }
    public static void main(String[] args) {
        HouseList houseList=new HouseList(10);
        User user=choice();
        while (true){
        int key=user.menu();
        user.dOopinoper(key,houseList);
     }
    }
}